import request from '@/utils/request'
const api_name ='/eduservice/article'
export default {
  getPageList(page, limit,categoryId) {
    return request({
      url: `${api_name}/pageArticle/${page}/${limit}`,
      method: 'get',
      params:{
        categoryId:categoryId
      }
    })
  },
  getById(id){
    return request({
      url:`${api_name}/getArticle/${id}`,
      methods:'get'

    })
  }
}
